package model

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"size:255;not null;unique" json:"username"`
	Email    string `gorm:"size:255;not null;unique" json:"email"`
	Password string `gorm:"size:255;not null" json:"-"`
	Status   int    `gorm:"default:1" json:"status"` // 1: active, 0: inactive
}

func (User) TableName() string {
	return "user"
}
